﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Common;

namespace BusinessLogic
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IFaultWCF" in both code and config file together.
    [ServiceContract]
    public interface IFaultWCF
    {
        [OperationContract]
        void AddToFaults(Fault f);

        [OperationContract]
        IEnumerable<Fault> GetAllFaults();

        [OperationContract]
        FaultStatu GetFaultStatus(int statusID);

        [OperationContract]
        IEnumerable<CategoryFault> GetCategoryFault();

        [OperationContract]
        Fault GetFaultByID(int id);

        [OperationContract]
        IEnumerable<FaultStatu> GetAllFaultStatus();

        [OperationContract]
        void UpdateFault(Fault f);
    }
}
